/**
 * PathActivity.java
 * com.jamin.custom_view_topbar_path
 *
 * Function： TODO 
 *
 *   ver     date      		author
 * ──────────────────────────────────
 *   		 2012-8-4 		wangjieming
 *
 * Copyright (c) 2012, TNT All Rights Reserved.
 */

package com.jamin.custom_view_topbar_path;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.Toast;

import com.jamin.R;

/**
 * ClassName:PathActivity
 *
 * @author   wangjieming
 * @version  1.0
 * @since    v1.0
 * @Date	 2012-8-4 上午10:47:12 
 */
public class PathActivity extends Activity{

	TopBar topBar = null;
	PathLayout path = null;


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.path_activity);
		initView();
	}


	private void initView() {
		//Init TopBar
		topBar = (TopBar) findViewById(R.id.top_bar_path);
		path = (PathLayout) findViewById(R.id.path_layout);
		topBar.setTopBarClickListener(new TopBarClickListener() {
			@Override
			public void rightBtnClick() {
				//gone
			}

			@Override
			public void leftBtnClick() {
				PathActivity.this.finish();
			}
		});
		path.setOnclickListener(new PathClickListener() {
			
			@Override
			public void thirdBtnClick() {
				Toast.makeText(PathActivity.this, "hello 3", Toast.LENGTH_SHORT).show();
			}
			
			@Override
			public void secondBtnClick() {
				Toast.makeText(PathActivity.this, "hello 2", Toast.LENGTH_SHORT).show();
			}
			
			@Override
			public void firstBtnClick() {
				Toast.makeText(PathActivity.this, "hello 1", Toast.LENGTH_SHORT).show();
			}
		});
	}
	
	
	



















}

